<%--
  Created by IntelliJ IDEA.
  User: yzh
  Date: 2024/12/12
  Time: 19:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>管理员登陆页面</title>
</head>
<body>
<form action="/booksystem/LoginServlet" method="post">
    <table align="center" border="1px">
        <tr align="center">
            <td>用户登录</td>
        </tr>
        <tr align="center">
            <td>用户名：<input type="text" name="username"></td>
        </tr>
        <tr align="center">
            <td>密码：<input type="password" name="password"></td>
        </tr>
        <tr align="center">
            <td><input type="submit" value="登录">
                <input type="reset" value="重置">
            </td>
        </tr>
    </table>
</form>
<script>
    var errori = '${param.error1}';
    var errorj = '${param.error0}';
    if (errorj === 'no') {
        alert("用户或密码不能为空");
    }
    if (errori === 'yes') {
        alert("用户名或者密码错误");
    }
</script>



</body>
</html>
